from plugin.db import Influx
from plugin.logger import MyLogger, get_log, LOGFORMAT
from plugin.db import DB, MSsqlClient, MysqlClient, RedisClient, Sqlite, SqliteIndep
from plugin.exception import MyException
from config import Config
from plugin.scheduler import Trigger
if Config.config.plugin.scheduler:
    from plugin.scheduler import SchedulerManager
if Config.config.plugin.presistence_scheduler:
    from plugin.scheduler import Persistence_Scheduler_Manager
from plugin.flask_docs import Create_Doc
from plugin.resp import MyResponse, get_param
from plugin.mytime import MyTime
from plugin.myrandom import MyRandom
from plugin.com_method import compare_objects, compare_list, compare_object, compare_object_list_by_attr
# 日志相关
LOGFORMAT
get_log  # 获取日志对象方法
Mylogger = MyLogger.logger  # 全局日志对象，默认日志对象，写入base.log
# flask_log = MyLogger.flask_log  # 全局日志对象，记录网络调用日志，写入invoke_api.log

# db
DB  # 数据库操作类，父类
MysqlClient  # mysql操作类
MSsqlClient  # sqlserver操作类
RedisClient  # redis操作类
Sqlite
Influx

# Exception
MyException  # 自定异常

# 接口文档
Create_Doc

# 通用接口返回格式
MyResponse
get_param

# 时间转换
MyTime

# 随机数
MyRandom